/*************************************************************************
> File Name: control.cpp
> Author: hzy
> Created Time: 2023-08-17 20:06:37
> Description:
************************************************************************/
#include "../Headers/control.h"

Control::Control()
{
}
Control::~Control()
{
}

void Control::run()
{
    io.showMenu();
    switch (io.getFlag())
    {
    case 1:
        insertEmploy();
        break;
    }
}

void Control::insertEmploy()
{
    arr.pushBack(io.inputPerson());
}